import { computed, ref } from 'vue'

export function useModal() {
  const modalRef = ref()
  const okLoading = computed({
    get() {
      return modalRef?.value!.okLoading
    },
    set(v) {
      modalRef.value!.okLoading = v
    },
  })
  return { modalRef, okLoading }
}
